<?php
include_once(dirname(__FILE__) . "/../framework/config.php");

include_once(FRAMEWORK_PATH . "/helper.php");
include_once(FRAMEWORK_PATH . "/logging.php");
include_once(FRAMEWORK_PATH . "/tpl.php");
include_once(FRAMEWORK_PATH . "/cache.php");
include_once(FRAMEWORK_PATH . "/database.php");

include_once(dirname(__FILE__) . "/database/db_parser.class.php");
include_once(dirname(__FILE__) . "/database/db_task.class.php");
include_once(dirname(__FILE__) . "/database/db_setting.class.php");
include_once(dirname(__FILE__) . "/database/db_user.class.php");

include_once(dirname(__FILE__) . "/app/parser.class.php");
include_once(dirname(__FILE__) . "/app/task.class.php");
include_once(dirname(__FILE__) . "/app/setting.class.php");
include_once(dirname(__FILE__) . "/app/user.class.php");
include_once(dirname(__FILE__) . "/app/upload.class.php");


// database
defined('MYSQL_SERVER') or define('MYSQL_SERVER', 'localhost');
defined('MYSQL_USERNAME') or define('MYSQL_USERNAME', 'anna');
defined('MYSQL_PASSWORD') or define('MYSQL_PASSWORD', 'anna');
defined('MYSQL_DATABASE') or define('MYSQL_DATABASE', 'anna');
defined('MYSQL_PREFIX') or define('MYSQL_PREFIX', 'anna_');


defined('UPLOAD_DIR') or define('UPLOAD_DIR', APP_PATH . '/upload/');
defined('UPLOAD_URL') or define('UPLOAD_URL', rtrim(APP_URL, "/") . '/upload/');
defined('RESULT_DIR') or define('RESULT_DIR', APP_PATH . '/result/');
defined('RESULT_URL') or define('RESULT_URL', rtrim(APP_URL, "/") . '/result/');

defined('APP_SERVER_IP') or define('APP_SERVER_IP', "localhost");
defined('APP_SERVER_PORT') or define('APP_SERVER_PORT', 10123);

